package com.yuzhe.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;

public class GloBalActionInterceptor implements Interceptor {
    public void intercept(Invocation inv) {
        Controller controller = inv.getController();
        controller.getResponse().addHeader("Access-Control-Allow-Origin","*");
        inv.invoke();
    }
}
